﻿<%@ Page Language="C#" MasterPageFile="~/Shared/MainPage.Master" AutoEventWireup="true" CodeBehind="DutyGroupList.aspx.cs" Inherits="Runda.CMS.Portal.NoticeManage.DutyGroupList" StylesheetTheme="GlobleTheme" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Assembly="RadAjax.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>
<%@ Register Assembly="RadGrid.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" runat="server">
  <link href="../Content/global.css" rel="stylesheet" type="text/css" /> 
    <link href="../Content/Find/find.css" rel="stylesheet" type="text/css" />
    <link href="../Content/Menu/Menu.css" rel="stylesheet" type="text/css" />
    <script src="../Content/global.js" type="text/javascript"></script>
    <script type="text/javascript">
        function Refersh() {
            document.getElementById('<%=btnRefersh.ClientID %>').click();
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" runat="server">

<div class="Container">
        <table id="appFind" class="find" cellspacing="0" cellpadding="0" border="0"> 
            <tbody>
                <tr height="23">
                    <td class="wizHead" colspan="7">
                        <table style="table-layout: fixed; font-size: 9pt" cellspacing="0" cellpadding="0" width="100%" height="100%">
                            <colgroup>
                                <col>
                                <col width="60">
                                <col width="60"> 
                                <tr><td style="color:#ffffff"><b>快速查询</b></td><td class="icMenu mnuRight" noWrap></td></tr>
                        </table>
                    </td>
                </tr>
                <tr id="__appFind_trQuery" height="40">
                    <td class="wizBox1" colspan="7">
                        <table id="__appFind_tbQuery1" style="table-layout: fixed; font-size: 9pt" height="100%"
                            cellspacing="0" cellpadding="0" width="100%">
                            <col width="60" align="center">
                            <col width="90">
                            <col width="55" align="center">
                            <col>
                            <col width="90" style="padding-left: 10px">
                            <tr>
                                <td>
                                    &nbsp;
                                </td>
                                <td>
                                    值班组名
                                </td>
                                <td>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtDutyName" runat="server" Width="400px" CssClass="input"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:Button ID="btnSearchBasic" runat="server" Text="查找" CssClass="button" OnClick="btnSearch_Click" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </tbody>
    </table>            
</div>

<div class="Container">
    <table class="mnubar" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td style="padding-left: 5px" nowrap>
                        <b>列表</b>
                    </td>
                    <td style="padding-left: 5px">
                        <img src="../Content/Grid/separator.gif">
                    </td>
                    <td class="icMenu" nowrap> 
                            <table id="appGridMenu_mainmnu" class="mnuList" cellspacing="0" cellpadding="3">
                                <colgroup>
                                    <col class="mnuLeft">
                                    <col class="mnuItm">
                                    <col align="right" width="20">
                                    <tbody>
                                        <tr>
                                            <td>
                                               
                                            </td>
                                            <td> 
                                              
                                            </td>
                                            <td> 
                                            </td>
                                        </tr>
                                    </tbody>
                            </table> 
                    </td>
                    <td class="icMenu mnuRight" nowrap>
                    <span class="menu"  onclick="openStdWin('DutyGroupAdd.aspx','DutyGroupAdd');" runat="server" id="spanAddDuty">
                            <img class="mnuBtn" src="../Content/Grid/New_16_blue.gif"><span class="mnuBtn">新增值班组</span></span>
                     <span class="menu" onclick="Refersh();"><img class="mnuBtn" src="../Images/16_L_refresh.gif">刷新</span>
                    </td>
                </tr>
            </tbody>
        </table>       
        <div style="border-bottom: #c2c2bf 1px solid; border-top: #969693 1px solid">
        </div>
            <asp:Panel runat="server" ID="panel1">
                <rad:RadGrid runat="server" ID="gridAccessoryList" Skin="OCM" AutoGenerateColumns="False" AllowSorting="false" GridLines="None" EnableAJAX="True" EnableAJAXLoadingTemplate="True"
                    OnItemDataBound="gridAccessoryList_ItemDataBound" OnItemCommand="gridAccessoryList_ItemCommand">
                        <AJAXLoadingTemplate>
                            <img src="../Images/loadding_orange.gif" /> 加载中...
                        </AJAXLoadingTemplate>
                        <ClientSettings EnableClientKeyValues="true">
                            <Selecting AllowRowSelect="true" /> 
                        </ClientSettings>
                        <MasterTableView DataKeyNames="DutyGroupID">  
                        <Columns>
                            <rad:GridBoundColumn DataField="DuctyGroupName" HeaderText="值班组名称">
                            </rad:GridBoundColumn>
                            <rad:GridBoundColumn DataField="CreatedOn" HeaderText="创建日期">
                            </rad:GridBoundColumn>                             
                             <rad:GridTemplateColumn HeaderText="操作">
                             <ItemTemplate> 
                                 <asp:LinkButton ID="lnkbtnEdit" runat="server">修改</asp:LinkButton>
                                 <asp:LinkButton ID="lnkbtnDelete" runat="server" CommandName="delete">删除</asp:LinkButton>
                             </ItemTemplate>
                             </rad:GridTemplateColumn> 
                        </Columns>
                    </MasterTableView>
                </rad:RadGrid>
      
                   <webdiyer:AspNetPager ID="AspNetPager1" runat="server" CssClass="paginator"  
                                CurrentPageButtonClass="cpb" CustomInfoHTML="第%CurrentPageIndex%页，共%PageCount%页，每页%PageSize%条" 
                                FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页" 
                                ShowCustomInfoSection="Left" Width="100%" LayoutType="Table"  
                                SubmitButtonClass="but" SubmitButtonText="转到" onpagechanged="AspNetPager1_PageChanged">
                            </webdiyer:AspNetPager>    
             </asp:Panel>
</div>
    <asp:Button ID="btnRefersh" runat="server" Text="Button" onclick="btnRefersh_Click" style="display:none"/>
</asp:Content>
